package com.ruoyi.project.erp.setupbill.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.erp.setupbill.mapper.SetupbillMapper;
import com.ruoyi.project.erp.setupbill.domain.Setupbill;
import com.ruoyi.project.erp.setupbill.service.ISetupbillService;
import com.ruoyi.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-08-31
 */
@Service
public class SetupbillServiceImpl implements ISetupbillService 
{
    @Resource
    private SetupbillMapper setupbillMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public Setupbill selectSetupbillById(Long id)
    {
        return setupbillMapper.selectSetupbillById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param setupbill 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Setupbill> selectSetupbillList(Setupbill setupbill)
    {
        return setupbillMapper.selectSetupbillList(setupbill);
    }

    @Override
    public List<Setupbill> selectSetupbillListPermit(Setupbill setupbill, String permit) {
        return setupbillMapper.selectSetupbillListPermit(setupbill,Convert.toStrArray(permit));
    }

    @Override
    public List<Setupbill> querySetupbillList(long[] rowsId) {
        return setupbillMapper.querySetupbillList(rowsId);
    }

    @Override
    public List<Setupbill> selectSetupbillListQuery(Setupbill setupbill, String beginTime, String endTime,String permit) {
        return setupbillMapper.selectSetupbillListQuery(setupbill,beginTime,endTime,Convert.toStrArray(permit));
    }

    @Override
    public String selectMid() {
        return setupbillMapper.selectMid();
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param setupbill 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSetupbill(Setupbill setupbill)
    {
        return setupbillMapper.insertSetupbill(setupbill);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param setupbill 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSetupbill(Setupbill setupbill)
    {
        return setupbillMapper.updateSetupbill(setupbill);
    }

    @Override
    public int reviewSetupbill(Setupbill setupbill) {
        return setupbillMapper.reviewSetupbill(setupbill);
    }

    @Override
    public int reviewDisSetupbill(Setupbill setupbill) {
        return setupbillMapper.reviewDisSetupbill(setupbill);
    }

    @Override
    public String selectMaxCode() {
        return setupbillMapper.selectMaxCode();
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSetupbillByIds(String ids)
    {
        return setupbillMapper.deleteSetupbillByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteSetupbillById(Long id)
    {
        return setupbillMapper.deleteSetupbillById(id);
    }
}
